package com.xq.shop.service;

import com.xq.shop.dao.domain.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xq.shop.dto.*;
import com.xq.shop.vo.UserVo;
import utils.BasePage;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author gaoxiaojin
 * @since 2024-07-16
 */
public interface IUserService extends IService<User> {

    String login(LoginDto dto);

    UserVo getInfo(HttpServletRequest request);

    void logout(HttpServletRequest request);

    void editUser(EditUserDto dto, Integer id);

    BasePage<UserVo> pageUser(QueryDto dto, UserVo userVo);

    void removeUser(IntegerDto dto, Integer id);

    void changeInfo(ChangeInfoDto dto, HttpServletRequest request);
}
